﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace LabelPrint
{

    [RoutePrefix("api/print")]// 获取路由前缀
    public class printController : ApiController
    {
        [HttpGet]
        [Route("test")]
        public string getPrint()
        {

            return "接口测试成功!!!";
        }

        [HttpPost]
        [Route("{doc_no}")]
        public string getPrint(string doc_no)
        {
            //   SQLServerDataBase sql = new SQLServerDataBase();
           
            return "工单单号为:" + doc_no;
        }

    }

}

